﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;
using RESTScrum.Dominio;


namespace RESTScrum
{
    [ServiceContract]
    public interface ITipoRecursos
    {

        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "TipoRecurso", ResponseFormat = WebMessageFormat.Json)]
        TipoRecurso CrearTipoRecurso(TipoRecurso TipoRecursoACrear);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "TipoRecurso/{codigo}", ResponseFormat = WebMessageFormat.Json)]
        TipoRecurso ObtenerTipoRecurso(string codigo);

        [OperationContract]
        [WebInvoke(Method = "PUT", UriTemplate = "TipoRecurso", ResponseFormat = WebMessageFormat.Json)]
        TipoRecurso ModificarTipoRecurso(TipoRecurso TipoRecursoAModificar);

        [OperationContract]
        [WebInvoke(Method = "DELETE", UriTemplate = "TipoRecurso/{codigo}", ResponseFormat = WebMessageFormat.Json)]
        void EliminarTipoRecurso(string codigo);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "TipoRecurso", ResponseFormat = WebMessageFormat.Json)]
        List<TipoRecurso> ListarTipoRecurso();

    }
}
